<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
%><%@ taglib prefix="c" 		uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="fn" 		uri="http://java.sun.com/jsp/jstl/functions"
%><c:set var="path" value="${pageContext.request.contextPath}/" />
<!-- header -->
<div class="u_ts">
	<a href="http://m.naver.com" onClick="nclk(this, 'top.naver', '', '');"><img width="58" height="33" alt="NAVER" src="http://static.naver.com/m/tv/im/lg_naver.png"></a>
	<a href="/home.nhn" onClick="nclk(this, 'top.tvguide', '', '');"><img width="74" height="33" alt="TV편성표" src="http://static.naver.com/m/tv/im/lg_tv.png"></a>
</div>

<c:if test="${(result eq 'success') or (result eq 'empty') or (result eq 'noProgram')}">
<div class="ht">
	<div class="nv1" id="nv1">
		<ul>
		<li class="l1<c:if test="${(fn:contains(pageContext.request.requestURI, 'channel/listByProgramTime.nhn'))
								or (fn:contains(pageContext.request.requestURI, 'home.nhn'))
								or ((fn:contains(pageContext.request.requestURI, 'program/list.nhn')) and (param.menu eq '1'))
								}"> on</c:if>"><a href="${path}channel/listByProgramTime.nhn?groupId=1" onClick="nclk(this, 'lnb.time', '', '');"><span>시간별</span></a></li>
		<li class="l33<c:if test="${(fn:contains(pageContext.request.requestURI, 'channel/list.nhn'))
								or ((fn:contains(pageContext.request.requestURI, 'program/list.nhn')) and (param.menu eq '2'))
								}"> on</c:if>"><a href="${path}channel/list.nhn?groupId=1" onClick="nclk(this, 'lnb.channel', '', '');"><span>채널별</span></a></li>
		<li class="l33<c:if test="${(fn:contains(pageContext.request.requestURI, 'channel/myList.nhn'))
								or ((fn:contains(pageContext.request.requestURI, 'program/list.nhn')) and (param.menu eq '3'))
								}"> on</c:if>"><a href="${path}channel/myList.nhn" onClick="nclk(this, 'lnb.my', '', '');"><span>마이채널</span></a></li>
		</ul>
		<h2 class="hc">시간별</h2>
	</div>
</div>
</c:if>
<!-- //header -->

<!-- content header -->
<c:if test="${(result ne 'expired') && (result ne 'error') && (result ne 'notFound')}">
	<c:choose>
		<c:when test="${fn:contains(pageContext.request.requestURI, 'channel/listByProgramTime.nhn') or fn:contains(pageContext.request.requestURI, 'home.nhn') or (param.menu eq '1')}">
		<div class="chn">
			<dl class="nv3">
			<dt class="hc">지상파</dt>
			<dd style="width:22%;" class="f<c:if test="${param.groupId eq '1' or param.groupId eq null}"> on</c:if>"><a href="${path}channel/listByProgramTime.nhn?groupId=1&amp;date=${fn:substring(date,0,8)}&amp;hour=${fn:substring(hour,0,2)}" onClick="nclk(this, 'ttt.ground', '', '');">지상파</a></dd>
			<dd style="width:22%;" <c:if test="${param.groupId eq '2'}">class="on"</c:if>><a href="${path}channel/listByProgramTime.nhn?groupId=2&amp;<c:if test="${param.groupId eq '2'}">classId=${classId}&amp;</c:if>date=${fn:substring(date,0,8)}&amp;hour=${fn:substring(hour,0,2)}" onClick="nclk(this, 'ttt.cable', '', '');">케이블</a></dd>
			<dd style="width:34%;" <c:if test="${param.groupId eq '3'}">class="on"</c:if>><a href="${path}channel/listByProgramTime.nhn?groupId=3&amp;<c:if test="${param.groupId eq '3'}">classId=${classId}&amp;</c:if>date=${fn:substring(date,0,8)}&amp;hour=${fn:substring(hour,0,2)}" onClick="nclk(this, 'ttt.skylife', '', '');">스카이라이프</a></dd>
			<dd style="width:22%;" <c:if test="${param.groupId eq '9'}">class="on"</c:if>><a href="${path}channel/listByProgramTime.nhn?groupId=9&amp;<c:if test="${oaram.groupId eq '9'}">classId=${classId}&amp;</c:if>date=${fn:substring(date,0,8)}&amp;hour=${fn:substring(hour,0,2)}" onClick="nclk(this, 'ttt.satellite', '', '');">해외위성</a></dd>
			</dl>
			<h2 class="hc">TV편성표홈</h2>
		</div>
		</c:when>
		<c:when test="${(fn:contains(pageContext.request.requestURI, 'channel/list.nhn')) or (param.menu eq '2')}">
		<div class="chn">
			<dl class="nv3">
			<dt class="hc">지상파</dt>
			<dd style="width:22%;" class="f<c:if test="${param.groupId eq '1' or param.groupId eq null}"> on</c:if>"><a href="${path}channel/list.nhn?groupId=1" onClick="nclk(this, 'ctt.ground', '', '');">지상파</a></dd>
			<dd style="width:22%;" <c:if test="${param.groupId eq '2'}">class="on"</c:if>><a href="${path}channel/list.nhn?groupId=2" onClick="nclk(this, 'ctt.cable', '', '');">케이블</a></dd>
			<dd style="width:34%;" <c:if test="${param.groupId eq '3'}">class="on"</c:if>><a href="${path}channel/list.nhn?groupId=3" onClick="nclk(this, 'ctt.skylife', '', '');">스카이라이프</a></dd>
			<dd style="width:22%;" <c:if test="${param.groupId eq '9'}">class="on"</c:if>><a href="${path}channel/list.nhn?groupId=9" onClick="nclk(this, 'ctt.satellite', '', '');">해외위성</a></dd>
			</dl>
			<h2 class="hc">TV편성표홈</h2>
		</div>
		</c:when>	
		<c:when test="${fn:contains(pageContext.request.requestURI, 'channel/myList.nhn')}">	
		<div class="gb"></div>
		</c:when>
	</c:choose>
</c:if>
<hr />

